package com.xuecheng.api.agent;
import com.xuecheng.api.content.TeachplanMedia;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = XcFeignServiceNameList.XC_CONTENT_SERVICE,fallback=ContentApiAgentFallBack.class)
public interface ContentApiAgent {
    @GetMapping("/content/l/TeachplanMedia/{mediaId}")
    RestResponse<TeachplanMedia> getTeachplanByMediaId(@PathVariable Long mediaId);
}
